<%@page import="java.util.Locale"%>
<%@page import="java.util.ResourceBundle"%>
<%@page import="net.tanesha.recaptcha.ReCaptchaFactory"%>
<%@page import="net.tanesha.recaptcha.ReCaptcha"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.sql.Date"%>
<%@page import="com.googlecode.objectify.Query"%>
<%@page import="server.Utils"%>
<%@page import="model.Articles"%>
<%@page import="java.util.ArrayList"%>
<%@page import="javax.cache.CacheException"%>
<%@page import="java.util.Collections"%>
<%@page import="javax.cache.CacheManager"%>
<%@page import="javax.cache.Cache"%>
<% request.setCharacterEncoding("utf-8"); %>
<%
ResourceBundle resource = ResourceBundle.getBundle("language",
		new Locale("en"));
String strs = (String) request.getAttribute("strs");
String name = (String) request.getAttribute("name");
String title = resource.getString("title_contact");
String description=resource.getString("description_contact");
String keyword = resource.getString("keyword_contact");
String[] check = (String[]) request.getAttribute("check");
String success = (String) request.getAttribute("success");


%>

<jsp:include page="/layout/header.jsp">
	<jsp:param name="title" value="<%=title %>"/>
	<jsp:param name="description" value="<%=description %>"/>
	<jsp:param name="keywords" value="<%=keyword %>"/>
</jsp:include>

	<div class="bd">
		<div class="bdl">
			<%@ include file='/adv/250x250.jsp'%><br/><br/>
			<%@ include file='/adv/250x250.jsp'%>
		</div>
		<div class="bdr">
			<h2><%=resource.getString("contact") %></h2>
			<hr size="1"/>
			
				<%=(success != null)?"<p style='color:blue;float: none;'>"+success+"</p>":"" %>
				
				<form action="/contact" method="post" class="send_mail">
					<%=resource.getString("your_name") %> :<br/>
					<%=(check[0] != null)?"<p style='color:red;float: none;'>"+check[0]+"</p>":"" %>
					<input  type="text" name="name"/>
					<%=resource.getString("your_email") %> :<br/>
					<%=(check[1] != null)?"<p style='color:red;float: none;'>"+check[1]+"</p>":"" %>
					<input  type="text" name="email"/>
					<%=resource.getString("message") %> :<br/>
					<%=(check[2] != null)?"<p style='color:red;float: none;'>"+check[2]+"</p>":"" %>
					<textarea name="message"></textarea><br/>
					<%=(check[3] != null)?"<p style='color:red;float: none;'>"+check[3]+"</p>":"" %>
					<script>
			        	var RecaptchaOptions = { theme : 'clean' };
			  		</script>
					<%
						//6LdXmcISAAAAAHz6FsABghup-EayldUCiKQyDPAk //public
						//6LdXmcISAAAAANPIv5ykGg3LAlBMnUQHzy3-Kiqo //private
			          ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LdYH88SAAAAAOqQDG-imnGtynHolBe7BaN2DI8u", "6LdYH88SAAAAANMNSF7sO4kXxLFwCdwU0uzZHGls", false);
			          out.print(c.createRecaptchaHtml(null, null));
			        %>
			        <br/>
					<button type="submit"><%=resource.getString("send") %></button>
				</form>
			
		</div>
	</div>

<%@ include file='/layout/footer.jsp'%>			